package com.ruoyi.common.core.domain.model;

import com.ruoyi.common.xss.Xss;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * Description:
 * Author: YangShiWei
 * Email: strongwalter2014@gmail.com
 * Datetime: 2023/1/24 19:42
 */
@Data
public class XcxBindBody {

    @NotBlank(message = "{user.name.not.blank}")
    @Xss(message = "用户昵称不能包含脚本字符")
    @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
    private String name;

//    @Sensitive(strategy = SensitiveStrategy.PHONE)
    @NotBlank(message = "{user.phonenumber.not.blank}")
    private String mobile;
    @NotBlank(message = "小程序code不能为空")
    private String code;

}
